﻿<UserControl
    x:Class="SharepointCompanion.SharepointLoginDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SharepointCompanion"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="800"
    d:DesignWidth="1240"
    Background="#7F000000"
    >
    <UserControl.Resources>
        <Style TargetType="StackPanel">
            <Setter Property="Margin" Value="5 5 5 5"/>
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="Margin" Value="0 5 0 5"/>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="_layoutRoot" Background="#7F000000">
        <Grid x:Name="_dialogRoot" Background="Black" VerticalAlignment="Center" HorizontalAlignment="Center">
            <StackPanel Width="450" VerticalAlignment="Top" d:LayoutOverrides="Height">
                <StackPanel>
                <TextBlock Style="{StaticResource SubheaderTextStyle}" Text="Connect to Sharepoint Online" />
                <TextBlock>Provide your Sharepoint Online connection and credentials</TextBlock>
                </StackPanel>
                <StackPanel>
                <TextBlock>Sharepoint Address</TextBlock>
                <TextBox x:Name="uri" Text="https://xxx.sharepoint.com" />
                <TextBlock  >User Name</TextBlock>
                <TextBox x:Name="usr" />
                <TextBlock >Password</TextBlock>
                <PasswordBox x:Name="pwd" />
                    </StackPanel>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button x:Name="Login" Click="Login_Click"  >Connect</Button>
                    <Button x:Name="Cancel" Click="Cancel_Click_1" >Cancel</Button>
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>